//dprop comboBox

Ext.define('PHT.DpropComboBox', {
    extend: 'Ext.form.field.ComboBox', 
    alias: ['widget.serverbox'],
    id: 'dprop-server-combobox',
    triggerAction: 'all',
    queryMode: 'local',
    typeAhead: true,
    store : Ext.create('Ext.data.Store', {
        model: 'PHT.MODEL.Item',   
        proxy: {
            type: 'ajax',
            url : 'initDprop.do',
            reader: {
                type: 'json',
                root: 'names'
            }
        },
        autoLoad: true
    }),
    margin: '30,0,0,60',
    displayField: 'name',
    valueField: 'id',
    allowBlank: false,
    emptyText : 'Select  a Dprop server name',
    forceSelection: true,
    initComponent: function() {
        var me = this;
        me.callParent(arguments);
    }
});